* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);*/
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    /*background: #777777;*/
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.main-content {
    display: flex;
    min-height: 600px;
}

.config-panel {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
}

.preview-panel {
    flex: 1;
    padding: 30px;
    background: white;
    /*position: relative;*/

    position: sticky;
    top: 20px;
    align-self: flex-start;

}

.section {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.option-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    /*background-color: rgba(255, 255, 255, 0.25);*/
    /*backdrop-filter: blur(20.5px);*/
    /*-webkit-backdrop-filter: blur(20.5px);*/
    /*border: 0.666667px solid rgba(255, 255, 255, 0.18);*/
    /*box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;*/
    /*-webkit-box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;*/
    /*border-radius: 25px;*/
    /*-webkit-border-radius: 25px;*/
    /*color: rgba(255, 255, 255, 0.75)*/

}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.option-card.selected {
    border-color: #3498db;
    background: #f0f8ff;
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.option-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.option-price {
    color: #e74c3c;
    font-size: 1.2em;
    font-weight: bold;
}

.option-description {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 5px;
}

.car-preview {
    text-align: center;
    margin-bottom: 30px;
}

.car-image {
    width: 100%;
    max-width: 400px;
    height:auto;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-image:hover img {
    transform: scale(1.05);
}

/* 摘要容器动画 */
.summary{
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

/* 每条摘要信息淡入 */
.summary-item{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;

    /*new*/
    transition: max-height .45s ease, margin-bottom .45s ease, opacity .45s ease;
    overflow: hidden;
    max-height: 40px;          /* 与行高一致即可 */
}
.summary-item.removing {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
}

/* 追加到 /css/sat-carconfig.css 末尾 */
#summaryList {
    transition: max-height .45s ease, padding .45s ease;
    overflow: hidden;
    max-height: 0;
    padding: 0;
}
#summaryList.show {
    max-height: 600px;   /* 足够大的安全值 */
    padding: 10px 0;
}


.summary-total {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    text-align: right;
    margin-top: 15px;
}

.add_pdding{
    padding-top: 5px;
}
.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: #27ae60;
}

.btn-primary:hover {
    background: #229954;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.color-option.selected {
    border-color: #3498db;
    transform: scale(1.1);
}

.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #3498db;
}